package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.PutawayDTO;
import com.arpa.wms.domain.entity.Putaway;
import com.arpa.wms.domain.vo.PutawayVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 上架 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2020-08-04
 */
public interface PutawayMapper extends BaseMapper<Putaway> {

    /**
     * 查询列表
     * @param putawayDTO
     * @return
     */
    List<PutawayVO> queryList(PutawayDTO putawayDTO);

    /**
     * 查询合计,包含总数
     * @param sql
     * @return
     */
    PutawayVO queryListSum(@Param("sql") String sql);

    /**
     * 查询合计,包含总数
     * @param putawayDTO
     * @return
     */
    PutawayVO queryListTotal(PutawayDTO putawayDTO);

    /**
     * @description
     * 更新上架单已上架数量
     * @author xuyang
     * @date 2020/10/30 16:24
     * @param code:
     * @param registerStatus:
     **/
    int updateRegisterQuantity(@Param("code") String code, @Param("registerStatus") String registerStatus, @Param("groupCode") String groupCode);
}
